@include('admin.header')
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="/mobile/category">手机分类</a></li>
			<li><a href="/mobile/category_add">添加</a></li>
		</ul>
		<form class="well form-search" method="post" action="{{asset('mobile/category')}}">
			关键字：
			<input type="text" name="keywords" style="width: 200px;" value="{{$keywords or ''}}" placeholder="请输入类名">
			<input type="submit" class="btn btn-primary" value="搜索" />
		</form>
		<div class="js-ajax-form" action="" method="post">
			<div class="table-actions">
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th>ID</th>
						<th>类名</th>
						<th>状态</th>
						<th>时间</th>
						<th>操作</th>
					</tr>
				</thead>
				@foreach($data as $key => $vo)
					<tr>
						<td><b>{{$vo->id}}</b></td>
						<td>{{$vo->name}}</td>
						<td>
							@if($vo->status == 0)
								禁用
							@else
								启用
							@endif
						</td>
						<td>{{$vo->create_time}}</td>
						<td>
							<a href="{{asset('mobile/category_edit')}}?id={{$vo->id}}">编辑</a>
						</td>
					</tr>
				@endforeach
				<tfoot>
				<tr>
					<th>ID</th>
					<th>类名</th>
					<th>状态</th>
					<th>时间</th>
					<th>操作</th>
				</tr>
				</tfoot>
			</table>
			<div class="table-actions">
			</div>
			<div class="pagination">{{$data->render()}}</div>
		</div>
	</div>
	<script src="/static/js/common.js"></script>
</body>
</html>